<template>
  <div class="MyHead">
    <div class="m">
      <div class="left">
        <i class="iconfont iconnew"></i>
      </div>
      <div class="center">
        <span><i class="iconsearch iconfont"></i>搜索新闻</span>
      </div>
      <div class="right" @click="$router.push('/user')">
        <i class="iconfont iconwode"></i>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style scoped lang='less'>
.MyHead {
  height: 40px;
  .m {
    height: 40px;
    width: 100%;
    background-color: red;
    display: flex;
    align-items: center;
    color: #fff;
    // position: fixed;
    // z-index: 9999;
    .left,
    .right {
      height: 40px;
      width: 30px;
      text-align: center;
      line-height: 40px;
      .iconnew {
        font-size: 30px;
      }
      .iconwode {
        font-size: 20px;
      }
    }
    .center {
      flex: 1;
      margin: 10px 0;
      background-color: rgba(255, 255, 255, 0.6);
      border-radius: 50px;
      height: 30px;
      text-align: center;
      line-height: 30px;
    }
  }
}
</style>